package com.xiaobu.shop.service.impl;

import com.xiaobu.shop.annotation.EnableMyPage;
import com.xiaobu.shop.domain.ResponseResult;
import com.xiaobu.shop.domain.entity.ShopProduct;
import com.xiaobu.shop.domain.query.QueryParameter;
import com.xiaobu.shop.mapper.ShopProductMapper;
import com.xiaobu.shop.service.ShopProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaobu
 * @since 2023-06-16
 */
@Service
public class ShopProductServiceImpl extends ServiceImpl<ShopProductMapper, ShopProduct> implements ShopProductService {

    @Autowired
    private ShopProductMapper shopProductMapper;
    @Override
    @EnableMyPage
    public Object getProductPage(QueryParameter queryParameter) {
        List<ShopProduct> shopProducts = shopProductMapper.selectList(null);
        return shopProducts;
    }
}
